package com.example.understandvideo.service.transcode;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

@Data// lombok注解，给字段添加getter和setter
@XmlAccessorType(XmlAccessType.FIELD)// 映射所有的字段
@XmlRootElement(name = "videodecoding")// XML根节点名称，此处为user
@AllArgsConstructor
@NoArgsConstructor
public class CloudVideoDecoding {
    private Integer videodecoderthread;
    private Integer preprocessmode;
    private Integer preprocessthread;
    private Integer transcodingtype;
    private Integer fileanalyzetype;

    public static CloudVideoDecoding getDefault(){
        return new CloudVideoDecoding(-1,0,-1,-1,0);
    }
}
